package elEMAS.mcMST;

import java.io.IOException;
import java.util.Properties;

import common.GeneticOperations;

import mcMST.Graph;
import mcMST.MSTGeneticOperations;
import mcMST.MSTGenotype;

import elEMAS.impl.EmasParameters;
import elEMAS.impl.EmasRunner;


public class ElEmasMSTRunner extends EmasRunner<MSTGenotype> {

	@Override
	public GeneticOperations<MSTGenotype> getGeneticOperations(
			Properties properties, EmasParameters params) {
		Graph cm = null;
		try {
			cm = new Graph(params.inputFile);
		} catch (IOException e) {
			System.out.println(e.getMessage());
		}

		MSTGeneticOperations go = new MSTGeneticOperations(cm);
		return go;
	}


	public static void main (String[] args) {
		new ElEmasMSTRunner().start("MST", args);
	}
}
